package main

import (
	"fmt"
	"go_keep_learning/jtthink/design_patterns/decotator/model"
)

//装饰器模式 ：允许 向一个现有的对象添加新的功能，同时不改变其结构
func main() {

	u := model.GetInfo(1)
	fmt.Println(u)

	uu := model.GetInfoWithRole(model.GetInfo)(1)
	fmt.Println(uu)

}
